package com.king.micro.common.proxy;

import com.king.micro.common.outer.UserOuterService;
import com.zeus.framework.base.logic.ParamCheckLogic;
import com.zeus.framework.commons.json.DataTransferObject;
import com.king.micro.common.dto.CommonRequest;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component("common.userProxy")
public class UserProxy implements UserOuterService {

    private static final Logger LOGGER = org.slf4j.LoggerFactory.getLogger(UserProxy.class);

    @Resource(name="commonProvider.paramCheckLogic")
    private ParamCheckLogic paramCheckLogic;

    /**
     * 条件分页查询楼盘字典
     * invoke com.king.micro.common.outer.UserOuterService.findHousesDicPageByCondition("{\"fid\":\"1\"}")
     */
    @Override
    public String findHousesDicPageByCondition(String paramJson) {
        CommonRequest commonRequest = paramCheckLogic.checkParamValidate(paramJson, CommonRequest.class, null);
        //int i = 1/0;
        DataTransferObject dto = new DataTransferObject();
        return dto.toJsonString();
    }
}
